<?php 
    require_once('../../php/mysql.php');
    $name = $_GET['name'];//得到用户所点的
    $sql ="select * from cake where name = '$name'";
    //和数据库中的name相一致， //就输出所对应的一行的全部数据
   
    $result = mysqli_query($conn,$sql);
    $data = [];
    while ($arr=mysqli_fetch_array($result)) {
        array_push($data, $arr);
     }  
 ?>


<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <script src="../../js/jquery-3.1.1.js"></script>
    <link rel="stylesheet" href="../../css/super.css"/>
    <link rel="stylesheet" href="../../css/header.css"/>
    <link rel="stylesheet" href="../../css/footer.css"/>
    <title>detail1</title>
</head>
<body>
    <?php include 'header.php' ?>
    <div class="location">你的当前位置： 首页 > 定制蛋糕 > 长辈定制蛋糕 </div>

    <div class="middle">
        <div class="middle_left">
            <div class="ding1">
                <a href="">定制蛋糕</a>
            </div>
            <div class="ding2">
                <a href="">女士定制蛋糕</a>
            </div>
            <div class="ding2">
                <a href="">男士定制蛋糕</a>
            </div>
            <div class="ding2">
                <a href="">儿童定制蛋糕</a>
            </div>
            <div class="ding2">
                <a href="">长辈定制蛋糕</a>
            </div>
            <div class="ding1">
                <a href="">茶歇饮品桌</a>
            </div>
            <div class="ding2">
                <a href="">生日甜品桌</a>
            </div>
            <div class="ding2">
                <a href="">婚礼甜品桌</a>
            </div>
            <div class="ding1">
                <a href="">精致下午茶</a>
            </div>
            <div class="ding2">
                <a href="">精致甜点</a>
            </div>
            <div class="ding2">
                <a href="">特色饮品</a>
            </div>
            <div class="ding1">
                <a href="">派对时刻</a>
            </div>
            <div class="ding2">
                <a href="">生日帽</a>
            </div>
            <div class="ding2">
                <a href="">蜡烛</a>
            </div>
            <div class="ding2">
                <a href="">餐盘</a>
            </div>
            <div class="ding2">
                <a href="">装饰品</a>
            </div>
            <div class="ding2">
                <a href="">优惠套装</a>
            </div>
        </div><!--middle_left-->
        <div class="middle_right">
            <table width="789" cellpadding="0" cellspacing="0" border="0">
                <tbody>
                <tr>
                    <td width="394" align="center" valign="top">
                        <div class="tupian1">
                            <!-- 需要添加数据 -->
                            <img  class="super2" src="<?php  echo $data[0]['img']?> " alt=""/>
                        </div>
                    </td>
                    <td width="10">&nbsp;</td>
                    <td width="385" align="center" valign="top">
                        <div class="xx">
                           <!-- 需要添加数据 -->
                           <?php  echo $data[0]['name']?>
                        </div>
                        <div class="xc">
                            生日Party想要与众不同，又要满足挑剔的味蕾，
                            就一定要选择芙拉维亚独创的半翻糖蛋糕，
                            既能品尝到奶油蛋糕独特的顺滑口感，又能享受到翻糖的立体造型！
                        </div>
                        <form action="" id="form11" method="post" name="form11" class="cc">
                            <table width="385" border="0" cellspacing="0" cellpadding="0">
                                <tbody>
                                <tr>
                                    <td width="56" height="35" align="center">
                                        <input name="psize" type="radio" value="6">
                                    </td>
                                    <td width="329" align="left">
                                        <div class="ya">
                                          <!-- 需要添加数据 -->
                                           <?php  echo $data[0]['price1']?>
                                        </div>
                                    </td>
                                </tr>
                                <tr>
                                    <td height="35" align="center">
                                        <input type="radio" name="psize" value="8" checked="checked">
                                    </td>
                                    <td align="left">
                                        <div class="ya">
                                            <!-- 需要添加数据 -->
                                            <?php  echo $data[0]['price2']?>
                                        </div>
                                    </td>
                                </tr>
                                <tr>
                                    <td height="35" align="center">
                                        <input type="radio" name="psize" value="10">
                                    </td>
                                    <td align="left">
                                        <div class="ya">
                                            <!-- 需要添加数据 -->
                                            <?php  echo $data[0]['price3']?>
                                        </div>
                                    </td>
                                </tr>
                                <tr>
                                    <td height="35" align="center">
                                        <input type="radio" name="psize" value="12">
                                    </td>
                                    <td align="left">
                                        <div class="ya">
                                           <!-- 需要添加数据 -->
                                            <?php  echo $data[0]['price4']?>
                                        </div>
                                    </td>
                                </tr>
                                </tbody>
                            </table>
                            <table width="385" border="0" cellspacing="0" cellpadding="0"
                                   style="border-bottom:1px solid #CC176E;
                                                        border-top:1px solid #CC176E;">
                                <tbody>
                                <tr>
                                    <td width="58" height="40" align="center">
                                        数量：
                                    </td>
                                    <td width="327" align="left" valign="middle">
                                        <input name="num" type="number" id="num"
                                               style="width:38px;border:1px solid #cccccc" value="1">
                                    </td>
                                </tr>
                                </tbody></table>
                            <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                <tbody>
                                <tr>
                                    <td width="15%" height="80">&nbsp;</td>
                                    <td width="85%" align="left">
                                        <a href="">
                                            <input type="image" name="filed" src="../../images/order/buy.jpg">
                                        </a>
                                        <input name="id" type="hidden" id="id" value="756">
                                    </td>
                                </tr>
                                </tbody>
                            </table>
                        </form>
                    </td>
                </tr>
                </tbody>
            </table>
            <div style="margin-top: 10px">
                <table width="789" cellpadding="0" cellspacing="0" border="0">
                    <tbody>
                    <tr>
                        <td class="jieshao" width="125" height="35" align="center" valign="middle">
                            蛋糕介绍
                        </td>
                        <td width="664" style="border-bottom:1px solid #FEA8BE">&nbsp;</td>
                    </tr>
                    <tr>
                        <td colspan="2">
                            <div class="xiuchu">
                                <p>
                                    <img src="../../images/order/jingcai.jpg" alt=""/>
                                    <img src="../../images/order/queen3.jpg" alt=""/>
                                    <img src="../../images/order/ni.jpg"  alt=""/>
                                    <img src="../../images/order/jia.jpg" alt=""/>
                                    <img src="../../images/order/dingzhi.jpg" alt=""/>
                                    <img src="../../images/order/guige.jpg" alt=""/>
                                    <img src="../../images/order/kefu.jpg" alt=""/>
                                </p>
                            </div>
                        </td>
                    </tr>
                    </tbody>
                </table>
            </div>
        </div><!--middle_right-->
    </div><!--middle-->

    <div class="box" id="box2" style="top: 250px;position:fixed; visibility: visible; right: 5px;">
        <a href="" target="_blank">
            <img src="../../images/join/qq.jpg">
        </a>
    </div>
  <!-- 页尾容器-->
<div id="footer"></div>
   
    <script>
    // $('.yuan table tbody').click(function(){
        //     var i = $(this).find('tr:eq(1) a').html();
        //       open('detail.php? id='+i+'')

        // })
        
        $('.footer').load('footer.html');
    </script>
</body>
</html>